<?php

namespace app\api\controller;

use app\common\controller\Api;
use fast\Random;

/**
 * Goeasy
 */
class Goeasy extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    //消息通知
    public function example($msg){
        $goeasy = new \addons\goeasy\library\Goeasy();
        $goeasy->sendGoeasy('admin', ['msg'=> $msg]);
    }

    //消息通知
    public function sendToAdmin($uid,$msg){
        $goeasy = new \addons\goeasy\library\Goeasy();
        $goeasy->sendGoeasy(7,['msg'=> $msg]);
    }
}
